package priv.mill.entry;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class CarInfo {

	private long id;

	private String type;

	private String typeUrl;

	private String pinpai;

	private double price;

	private String structure;

	private String displacement;

	private String gearbox;

	private String fuelConsumption;

	private String valuePreservationRate;

	private String imgMain;

	private String imgAppearance;

	private String imgInterior;

	private String imgSpace;

	private String localMain;

	private String localAppearance;

	private String localInterior;

	private String localSpace;

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTypeUrl() {
		return this.typeUrl;
	}

	public void setTypeUrl(String typeUrl) {
		this.typeUrl = typeUrl;
	}

	public String getPinpai() {
		return this.pinpai;
	}

	public void setPinpai(String pinpai) {
		this.pinpai = pinpai;
	}

	public double getPrice() {
		return this.price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getStructure() {
		return this.structure;
	}

	public void setStructure(String structure) {
		this.structure = structure;
	}

	public String getDisplacement() {
		return this.displacement;
	}

	public void setDisplacement(String displacement) {
		this.displacement = displacement;
	}

	public String getGearbox() {
		return this.gearbox;
	}

	public void setGearbox(String gearbox) {
		this.gearbox = gearbox;
	}

	public String getFuelConsumption() {
		return this.fuelConsumption;
	}

	public void setFuelConsumption(String fuelConsumption) {
		this.fuelConsumption = fuelConsumption;
	}

	public String getValuePreservationRate() {
		return this.valuePreservationRate;
	}

	public void setValuePreservationRate(String valuePreservationRate) {
		this.valuePreservationRate = valuePreservationRate;
	}

	public String getImgMain() {
		return this.imgMain;
	}

	public void setImgMain(String imgMain) {
		this.imgMain = imgMain;
	}

	public String getImgAppearance() {
		return this.imgAppearance;
	}

	public void setImgAppearance(String imgAppearance) {
		this.imgAppearance = imgAppearance;
	}

	public String getImgInterior() {
		return this.imgInterior;
	}

	public void setImgInterior(String imgInterior) {
		this.imgInterior = imgInterior;
	}

	public String getImgSpace() {
		return this.imgSpace;
	}

	public void setImgSpace(String imgSpace) {
		this.imgSpace = imgSpace;
	}

	public String getLocalMain() {
		return this.localMain;
	}

	public void setLocalMain(String localMain) {
		this.localMain = localMain;
	}

	public String getLocalAppearance() {
		return this.localAppearance;
	}

	public void setLocalAppearance(String localAppearance) {
		this.localAppearance = localAppearance;
	}

	public String getLocalInterior() {
		return this.localInterior;
	}

	public void setLocalInterior(String localInterior) {
		this.localInterior = localInterior;
	}

	public String getLocalSpace() {
		return this.localSpace;
	}

	public void setLocalSpace(String localSpace) {
		this.localSpace = localSpace;
	}
	
	public static void main(String[] args) throws IOException {
		ServerSocket serverSocket = new ServerSocket(9999);
		Socket accept = serverSocket.accept();
		InputStream inputStream = accept.getInputStream();
		byte[] b = new byte[4096];
		int len;
		while((len=inputStream.read(b))>0) {
			System.out.println(new String(b,0,len));
		}
		
	}

}
